package sctu.edu.java.year2016.team04.yanghuilin.day20160522.chapter4_2;

/**
 * Created by dell on 2016/5/22.
 * 编写java程序，应用for循环打印菱形。
 */
public class FourTwo {
    public static void main(String[] args) {
        int i=5;
        for(i=1;i<=5;i++)
        {
            if(i==1||i==5)
                System.out.println("  #  ");
            else
            {
                if(i==2||i==4)
                    System.out.println(" ### ");
                else
                    System.out.println("#####");
            }
        }
    }
}